package com.mictapp.application;

import java.util.ArrayList;
import java.util.List;

import com.mictapp.domain.XtyRecord;
import com.mictapp.domain.XyjRecord;

import android.app.Application;

public class GlobalVar extends Application{
	
	private String loginName;
	private String office;
	private List<XyjRecord> bloodPressureList;
	private List<XtyRecord> bloodSugarList;
	



	@Override
    public void onCreate() {
            super.onCreate();
            setLoginName("");
            setOffice("");
            bloodPressureList = new ArrayList<XyjRecord>();
            bloodSugarList = new ArrayList<XtyRecord>();
   }
	
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getOffice() {
		return office;
	}
	public void setOffice(String office) {
		this.office = office;
	}
    public List<XyjRecord> getBloodPressureList() {
		return bloodPressureList;
	}
	public void setBloodPressureList(List<XyjRecord> bloodPressureList) {
		for(XyjRecord o : bloodPressureList)
		{
			this.bloodPressureList.add(o);
		}
	}
	
	public List<XtyRecord> getBloodSugarList() {
		return bloodSugarList;
	}

	public void setBloodSugarList(List<XtyRecord> bloodSugarList) {
		for(XtyRecord o : bloodSugarList)
		{
			this.bloodSugarList.add(o);
		}
	}
}
